﻿using UnityEngine;
using System.Collections;
using KingSley;

/// <summary>
/// 修改游戏进行过程中鼠标的样式
/// </summary>
public class MousePointTexture : MonoSingleton<MousePointTexture>
{
    public Texture MouseTexture;
    private Vector3 vtMousePos = Vector3.zero;

    /// <summary>
    /// 隐藏默认鼠标
    /// </summary>
    void Start()
    {
        Cursor.visible = false;
    }
    
    void OnGUI()
    {
        vtMousePos = Input.mousePosition;
        GUI.DrawTexture(new Rect(vtMousePos.x, Screen.height - vtMousePos.y, 20, 20), MouseTexture);
    }
}
